package com.test;

import java.util.HashMap;

//书写一个普通类 将定义在serlvet中的url与方法的关系进行定义
public class AllController {
    static HashMap<String,String> hashMap=new HashMap<>();

    static {
        //模拟加载配置文件生成对应配置的过程
        hashMap.put("/springmvc_jk1/a","a");
        hashMap.put("/springmvc_jk1/b","b");
        hashMap.put("/springmvc_jk1/c","c");
        hashMap.put("/springmvc_jk1/d","d");
        hashMap.put("/springmvc_jk1/e","e");
    }



    public void a(){
        System.out.println("a方法执行");
    }
    public void b(){
        System.out.println("b方法执行");
    }
    public void c(){
        System.out.println("c方法执行");
    }
    public void d(){
        System.out.println("d方法执行");
    }
    public void e(){
        System.out.println("e方法执行");
    }
}
